
import axios from 'axios';
axios.defaults.baseURL = 'http://localhost:3001';
//登录考试
const wjllogin = (params = {}) => {
    return axios.post('/wjl/examlogin', { ...params })
}
//获取学生信息
const wjlgetstudent = (params = {}) => {
    return axios.get('/wjl/getstudent', { params })
}
//获取试卷信息
const wjlgetpaper = (params = {}) => {
    return axios.get('/wjl/getpaper', { params })
}
//获取试题信息
const wjlgetshiti = (params = {}) => {
    return axios.get('/wjl/getshiti', { params })
}
//人脸验证
const wjlface = (params = {}) => {
    return axios.post('/wjl/verify-face', { ...params }, {
        headers: {
            "Content-Type": "application/json",
        },
    },)
}
//添加考试答案
const wjladdRequest = (params = {}) => {
    return axios.post('/wjl/addRequest', { ...params })
}
//获取考试结果
const wjlgetresult2 = (params = {}) =>{
    console.log(params,'33');
    
    return axios.get("/wjl/getresult2",{params})
}
export {
    wjllogin,
    wjlgetstudent,
    wjlgetpaper,
    wjlgetshiti,
    wjlface,
    wjladdRequest,
    wjlgetresult2
} 